<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home_model extends CI_Model {
    function __construct()
    {
        parent::__construct();
    }
    
    function getarticle($id=0)
    {
 
	    $this->db->select('detail');
	    $sql="aid in ($id)";
	   	$this->db->where($sql);
	    $query = $this->db->get('article');     	     
		if ($query->num_rows()>0) {
		    $row =$query->result_array(); 
		   	$query->free_result();
			$this->db->close();
		   return $row;
		}
	
    }

}
